﻿using System;
using System.Collections.Generic;
using System.Linq;
using Azure.Domain.Models;

namespace Azure.Web.Models
{
    public class RecentPostsViewModel : List<PostViewModel>
    {
        public RecentPostsViewModel()
        {
        }

        public RecentPostsViewModel(IEnumerable<Post> posts)
        {
            foreach (var post in posts)
            {
                Add(new PostViewModel(post));
            }
        }
    }
}
